package com.sc.highspeed.db.dao;

import com.sc.highspeed.db.model.UserGroupModel;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * Created by Admin on 2017/11/27.
 */
public interface UserGroupDao {

    UserGroupModel getUserGroupByName(String groupName);
    UserGroupModel getUserGroupById(int id);
    List<UserGroupModel> getUserGroupList();
    List<UserGroupModel> getUserGroupListByOrg(String organization);
    int deleteUserGroupByName(int id);
    int insertUserGroup(UserGroupModel userGroupModel);

    int updateOrg(@Param("id") int id, @Param("organization") String organization);

}
